<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>set</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : 28/06/2004</div>
    <p>
      <b>set</b> - set a property value of a graphic entity
  object or of a User Interface object.</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>set(prop,val)</tt>
      </dd>
      <dd>
        <tt>set(h,prop,val)</tt>
      </dd>
      <dd>
        <tt>h.prop=val</tt>
      </dd>
      <dd>
        <tt>set(n,prop,val)</tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>h</b>
        </tt>: a handle, the handle of the entity which to set the named
          property, <tt>
          <b>h</b>
        </tt> can be a vector of handles, in which case
          set sets the property's value for all objects identified by
          h(i).</li>
      <li>
        <tt>
          <b>n</b>
        </tt>n : an integer, the handle of User Interface object which to set
          the named property.</li>
      <li>
        <tt>
          <b>prop</b>
        </tt>: character string name of the property to set.</li>
      <li>
        <tt>
          <b>val</b>
        </tt>
        <p>: value to give to the property (see
          <a href="graphics_entities.htm">
            <tt>
              <b>graphics_entities</b>
            </tt>
          </a>).</p>
      </li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>This routine can be used to set a graphics entity specified property.
    This graphics entity is identified by its handle <tt>
        <b>h</b>
      </tt>.If the
    handle is not specified, the current object is taken as the default
    handle. The type of the value to set property depends on the type of the
    graphics entity.</p>
    <p>See <a href="graphics_entities.htm">
        <tt>
          <b>graphics_entities</b>
        </tt>
      </a> for details about properties' names
    and values for graphics entities.</p>
    <p>See <a href="../tksci/uicontrol.htm">
        <tt>
          <b>uicontrol</b>
        </tt>
      </a> for details about properties' names and
    values for User Interface objects.</p>
    <p>For graphics entities handle it is possible to use equivalently a dot
    notation like <tt>
        <b>h.background</b>
      </tt> instead of <tt>
        <b>set</b>
      </tt>.</p>
    <h3>
      <font color="blue">Examples</font>
    </h3>
    <pre>


   clf()
   set("figure_style","new") //create a figure
   set("auto_clear","off") ;
   // Exemple of a Plot 2D
   x=[-.2:0.1:2*%pi]';
   plot2d(x-.3,[sin(x-1) cos(2*x)],[1 2] );
   a=get("current_axes");
   p1=a.children.children(1);
   p2=a.children.children(2);
   // set the named properties to the specified values on the objects
   set(p2,"foreground",13);
   set(p2,"polyline_style",2);
   set(a,'tight_limits',"on");
   set(a,"box","off");
   set(a,"sub_tics",[ 7 0 ]);
   set(a,"y_location","middle")
   set(p2,'thickness',2);
   set(p1,'mark_mode',"on");
   set(p1,'mark_style',3);
   plot2d(x-2,x.^2/20);
   p3= a.children(1).children;
   set([a p1 p2 p3],"foreground",5)

 
  </pre>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="get.htm">
        <tt>
          <b>get</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="delete.htm">
        <tt>
          <b>delete</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="copy.htm">
        <tt>
          <b>copy</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="move.htm">
        <tt>
          <b>move</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="graphics_entities.htm">
        <tt>
          <b>graphics_entities</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="../tksci/uicontrol.htm">
        <tt>
          <b>uicontrol</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
    <h3>
      <font color="blue">Author</font>
    </h3>
    <p>Djalel ABDEMOUCHE</p>
  </body>
</html>
